/*
 *  Copyright 2004 Blandware (http://www.blandware.com)
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package com.blandware.atleap.common.util;

import java.io.Serializable;

/**
 * <p>Marker interface to distinguish between classes,
 * which represent composite identifiers when generating ActionForm object</p>
 * <p><a href="CompositeID.java.html"><i>View Source</i></a></p>
 *
 * @author Sergey Zubtsovskiy <a href="mailto:sergey.zubtsovskiy@blandware.com">&lt;sergey.zubtsovskiy@blandware.com&gt;</a>
 * @version $Revision: 1.4 $ $Date: 2006/08/03 10:07:33 $
 */
public interface CompositeID extends Serializable {

    /**
     * Overrided <code>equals</code> method from <code>java.lang.Object</code>
     *
     * @param anotherObject Object to compare with
     * @return <code>True</code> if this identifier is equal to specified object and <code>false</code> otherwise
     * @see Object#equals(Object) 
     */
    public boolean equals(Object anotherObject);

    /**
     * Overrided <code>hashCode</code> method from <code>java.lang.Object</code>
     * 
     * @return Hash code of this instance
     * @see Object#hashCode()
     */
    public int hashCode();

}
